class MyClass(object):

    message='初始化成功'

    def idea1(self):

        print(self.a+self.b)

    def idea2(self):

        print('NO2')

    def __init__(self,a=1,b=2):

        self.a=a
        self.b=b

        print(self.message)


a = MyClass()
a.idea1()

a1 = MyClass(3,4)
a1.idea1()